package cn.yunhe.action;

import java.util.List;

import cn.yunhe.biz.DeptBiz;
import cn.yunhe.model.Dept;

public class DeptAction extends BaseAction {

	private DeptBiz deptBiz;
	
	public String seacherAll(){
		
		List<Dept> list=deptBiz.seacherAll();
		
		if(list.size()>0){
			getSession().setAttribute("list", list);
			return SUCCESS;
		}else{
			return ERROR;
		}				
	}

	
	
	
	
	public DeptBiz getDeptBiz() {
		return deptBiz;
	}

	public void setDeptBiz(DeptBiz deptBiz) {
		this.deptBiz = deptBiz;
	}	
}
